{if condition ="strtolower(request()->controller()) == 'news' && strtolower(request()->action()) == 'category'"}
<!--新闻分类-->
{volist name="dataList" id="vo"}
<tr>
    <td><a href="#">{$key+1}</a></td>
    <td>{$vo.sort}</td>
    <td>{$vo.name}</td>
    <td data-pid="{$vo.id}">
        <a href="{:url('News/categoryadd',array('id'=>$vo['id']))}" target="_blank">
            <button class="btn btn-primary btn-xs" title="编辑"><i class="icon-pencil"></i></button>
        </a>
        <a href="#deal" data-url="{:url('Member/updatefield')}" data-tablename="news_category" data-fieldname="ishidden" data-value="1" title="删除"
           data-text="确定删除吗？删除后将不可恢复">
            <button class="btn btn-danger btn-xs" title="删除"><i class="icon-trash"></i></button>
        </a>
    </td>
</tr>
{/volist}
{/if}


{if condition ="strtolower(request()->controller()) == 'news' && strtolower(request()->action()) == 'news'"}
<!--新闻列表-->
{volist name="dataList" id="vo"}
<tr>
    <td><a href="#">{$key+1}</a></td>
    <td>{$vo.category_name}</td>
    <td>{$vo.title}</td>
    <td>{$vo.create_time|date="Y-m-d H:i",###}</td>
    <td>
        {if condition="$vo.ispublish == 0"}
        <span class="label label-danger">未发布</span>
        {elseif condition="$vo.ispublish == 1"/}
        <span class="label label-success">已发布</span>
        {/if}
    </td>
    <td data-pid="{$vo.id}">
        <a href="{:url('News/newsadd',array('id'=>$vo['id']))}" target="_blank">
            <button class="btn btn-primary btn-xs" title="编辑"><i class="icon-pencil"></i></button>
        </a>
        <a href="#deal" data-url="{:url('Member/updatefield')}" data-tablename="news" data-fieldname="ishidden" data-value="1"
           data-text="确定删除吗？删除后将不可恢复">
            <button class="btn btn-danger btn-xs" title="删除"><i class="icon-trash"></i></button>
        </a>
        {if condition="$vo.ispublish == 0"}
        <a href="#deal" data-url="{:url('Member/updatefield')}" data-tablename="news" data-fieldname="ispublish" data-value="1">
            <button class="btn btn-warning btn-xs" title="发布"><i class="icon-eye-open"></i></button>
        </a>
        {elseif condition="$vo.ispublish == 1"/}
        <a href="#deal" data-url="{:url('Member/updatefield')}" data-tablename="news" data-fieldname="ispublish" data-value="0">
            <button class="btn btn-warning btn-xs" title="下架"><i class="icon-eye-close"></i></button>
        </a>
        {/if}
    </td>
</tr>
{/volist}
{/if}


{if condition ="strtolower(request()->controller()) == 'news' && strtolower(request()->action()) == 'review'"}
<!--新闻评价-->
{volist name="dataList" id="vo"}
<tr>
    <td><a href="#">{$key+1}</a></td>
    <td>{$vo.nickname}</td>
    <td>{$vo.news_title}</td>
    <td>{$vo.content}</td>
    <td>{$vo.create_time|date="Y-m-d H:i",###}</td>
    <td data-pid="{$vo.id}">
        <a href="#deal" data-url="{:url('Member/updatefield')}" data-tablename="news_review" data-fieldname="ishidden" data-value="1"
           data-text="确定删除吗？删除后将不可恢复">
            <button class="btn btn-danger btn-xs" title="删除"><i class="icon-trash"></i></button>
        </a>
    </td>
</tr>
{/volist}
{/if}